package cn.edu.jxust.common.domain.web.error;

import cn.edu.jxust.common.response.Result;
import org.springframework.boot.web.servlet.error.ErrorController;
import org.springframework.web.bind.annotation.GetMapping;
import javax.servlet.http.HttpServletRequest;

/**
 * @author QiuKangming
 * @version 1.0
 * @description
 * @since 2020/09/15 15:22
 */
public interface IAirQualityErrorController extends ErrorController {

    /**
     * 处理错误
     * @param request 请求域
     * @return Result
     */
    @GetMapping("/error")
    Result handleError(HttpServletRequest request);

}
